package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 微信用户绑定对象 sys_user_wechat
 *
 * @author shuyan
 * @date 2021-06-16
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_user_wechat")
public class SysUserWechat implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 系统用户名
     */
    @Excel(name = "系统用户名")
    private String userName;

    /**
     * openid
     */
    @Excel(name = "openid")
    private String openid;

    /**
     * unionid
     */
    @Excel(name = "unionid")
    private String unionid;

    /**
     * 微信昵称
     */
    @Excel(name = "微信昵称")
    private String nickname;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private Integer sex;

    /**
     * 语言
     */
    @Excel(name = "语言")
    private String language;

    /**
     * 城市名
     */
    @Excel(name = "城市名")
    private String city;

    /**
     * 省份
     */
    @Excel(name = "省份")
    private String province;

    /**
     * 国家
     */
    @Excel(name = "国家")
    private String country;

    /**
     * 头像url
     */
    @Excel(name = "头像url")
    private String headimgurl;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
